<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
	<title>用户注册</title>
</head>
<body>

 <form method="post">
   <table border="1" align="center">
   	   <tr>
   	   	 <th colspan="2" align="center">用户免费注册</th>
   	   </tr>
   	   <tr>
   	   	 <td>用户名:</td>
   	   	 <td><input type="text" name="username"></td>
   	   </tr>
   	   <tr>
   	   	 <td>密码:</td>
   	   	 <td><input type="password" name="pwd"></td>
   	   </tr>
        <tr>
   	   	 <td colspan="2" align="center"><input type="submit" name="submit" value="注册"></th>
   	    </tr>
   </table>
 </form>
 <?php
  if (isset($_POST['username'])&&$_POST['username']!='') {
    $username=htmlspecialchars($_POST['username']);
  }
   if (isset($_POST['pwd'])&&$_POST['pwd']!='') {
    $pwd=htmlspecialchars($_POST['pwd']);
  }

   
 ?>
</body>
</html>